package com.umanji.data;

import com.umanji.security.domain.Authorities;
import com.umanji.security.domain.Users;
import com.umanji.user.domain.Address;
import com.umanji.user.domain.Members;

public class DataSeeder {

	private Users user;

    public static Users generateUser() {
    	Users user = new Users();
    	user.setUsername("Homer");
    	user.setPassword("Simpson");
    	user.setEnabled(true);
        return user;
    }

    public static Authorities generateAuthorityUser(Users user) {
    	Authorities authority = new Authorities();
    	authority.setUser(user);
    	authority.setAuthority("ROLE_USER");
    	return authority;
    }

    public static Members generateMember(Users user) {
    	Members umjMember = new Members(user);

    	umjMember.setEmailAddress("test@test.com");
    	umjMember.setJuminNum1(111111);
    	umjMember.setJuminNum2(9888394);
    	umjMember.setNickName("wizard");
    	umjMember.setPhoneNumber("1234567891");
    	// umjMember<Person> lenders = new HashSet<Person>();
    	return umjMember;
    }

    public static Address generateAddress() {
            return new Address("서울 특별시 송파구 가락동 가락시영 아파트 58동 408호", "704-893");
    }

}
